package com.zlm.reflect;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zlm
 * @date 2025/4/27
 */
@Data
public class Student {

    private String name;
    private int age;

    private Student() {
    }

    private Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    private void run(){
        System.out.println("student run");
    }
    private static void eat(String food){
        System.out.println("student eat "+ food);
    }
    private static void eat(){
        eat("食物");
    }
}
